//
//  NetHelper.h
//  LoveHealth
//
//  Created by 陈永坤 on 14-9-28.
//  Copyright (c) 2014年 lanou. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "AppDelegate.h"
@class NetHelper;
typedef void(^DownloadBlock)(NSURLResponse *response, NSData *data, NSError *connectionError);

@interface NetHelper : NSObject

+ (NetHelper *)shareInstance;


- (void)loadingDataWithUrlString:(NSString *)urlString urlExpireInSeconds:(NSTimeInterval)timeInterval download:(DownloadBlock)download;
//+ (void)loadingDataWithUrlString:(NSString *)urlString
//                 download:(DownloadBlock)download;
- (NSUInteger)cachesDataSize;
- (void)cleanCachesData;

@end


